package com.woniu.guoguo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.guoguo.model.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.guoguo.model.MenuImg;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Richie
 * @since 2020-11-02
 */
public interface IMenuService extends IService<Menu> {

    List<Menu> findMenusByRestId(Integer restaurantId);

    IPage<Menu> getmenubytype(Page<Menu> page, String type);

    IPage<String> getmenuimgbytype(Page<String> page, String type);

    IPage<Menu> xlgetmenu(Page<String> page, String type);

    IPage<String> xlgetmenuimg(Page<String> page, String type);

    IPage<Menu> jggetmenu(Page<String> page, String type);

    IPage<String> jggetmenuimg(Page<String> page, String type);

    void addASaleByMenuId(int menuId);

    //根据名字
    IPage<Menu> getmenubyname(Page<Menu> page, String name);

    IPage<String> getmenuimgbyname(Page<String> page, String name);

    IPage<Menu> xlgetmenu2(Page<String> page, String name);

    IPage<String> xlgetmenuimg2(Page<String> page, String name);

    IPage<Menu> jggetmenu2(Page<String> page, String name);

    IPage<String> jggetmenuimg2(Page<String> page, String name);

}
